package com.eco.config;

import javax.sql.DataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.sqlite.SQLiteDataSource;

@Configuration
/* loaded from: newfishway-1.0.0-SNAPSHOT.jar:BOOT-INF/classes/com/eco/config/DataSourceConfig.class */
public class DataSourceConfig {
    @ConfigurationProperties(prefix = "spring.datasource.ds1")
    @Bean(name = {"ds1"})
    public DataSource dataSource1() {
        return DataSourceBuilder.create().type(SQLiteDataSource.class).build();
    }

    @ConfigurationProperties(prefix = "spring.datasource.ds2")
    @Bean(name = {"ds2"})
    public DataSource dataSource2() {
        return DataSourceBuilder.create().type(SQLiteDataSource.class).build();
    }

    /* JADX WARN: Type inference failed for: r0v1, types: [javax.sql.DataSource] */
    @ConfigurationProperties(prefix = "spring.datasource.ds3")
    @Bean(name = {"ds3"})
    public DataSource dataSource3() {
        return DataSourceBuilder.create().build();
    }
}